package com.itheima.Test;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Test007 {
    public static void main(String[] args) throws Exception {
        /*
        3.1 练习输出流写出一个字节的方法，
	        练习输出流写出字节数组的方法。
         */
        FileOutputStream fos = new FileOutputStream("C:\\Users\\97622\\Desktop\\123.txt");
        fos.write('A');
        fos.write('B');
        fos.write('C');
        fos.write('D');
        fos.write(5);
        fos.write(41);
        fos.write(43);
        fos.write(45);
        fos.write(41);
        fos.write(41);
        fos.write(45);
        fos.write(47);
        fos.write(41);
        byte[] arr  = {65,66,69,99,100};
        fos.write(arr,2,2);

    }
}
